package com.jl.card;

import com.jl.card.parse.StatusWordTable;

public class SWException extends Exception {

	private static final long serialVersionUID = -6562631437448020334L;
	private int sw = 0x9000;

	public SWException(int sw, String message) {
		super(message);
		this.sw = sw;
	}

	public SWException(int sw) {
		super(StatusWordTable.infoForSW(sw));
		this.sw = sw;
	}

	public int getSW() {
		return sw;
	}

}
